{% extends "mybase2.html" %} 


{% block style %}
    {{ super() }}
    <style>

    </style>
{% endblock %}

{% block content %}
<div id="container">
    <h2 style="text-align:center;" >我是flask-APP主页</h2>
    <h2>
        <img  alt="Avatar" class="avatar" src="{{ url_for('static', filename='images/avatar.png') }}" >
    </h2>
    <form method="post" action="{{ url_for('auth.login2') }}">
                   
    </form>    
</div>

{% endblock %}


{% block script %}
    {{ super() }}
   <script>

   </script>
{% endblock %}

{#
     <li><a href="{{ url_for('todo.index') }}">todo APP</a></li>
    <li><a href="{{ url_for('watchlist.index') }}">watchlist APP</a></li>

    
    <form method="post">
        {{ form.csrf_token }} {{ form.username.label }} {{ form.username }} <br />
        {{ form.password.label }} {{ form.password }} <br />
        {{ form.submit }}
    </form> 

    {% extends "base.html" %}

    {% block content %}
    <h1>Sign In</h1>
    <form action="" method="post">
        {{ form.hidden_tag() }}
        <p>
            {{ form.username.label }}<br>
            {{ form.username(size=32) }}<br>
            {% for error in form.username.errors %}
            <span style="color: red;">[{{ error }}]</span>
            {% endfor %}
        </p>
        <p>
            {{ form.password.label }}<br>
            {{ form.password(size=32) }}<br>
            {% for error in form.password.errors %}
            <span style="color: red;">[{{ error }}]</span>
            {% endfor %}
        </p>
        <p>{{ form.remember_me() }} {{ form.remember_me.label }}</p>
        <p>{{ form.submit() }}</p>
    </form>
    {% endblock %}
#}